/*
 * Copyright (c) 2023 HiSilicon (Shanghai) Technologies CO., LIMITED.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef __C_UNION_DEFINE_RTC_REGS_H__
#define __C_UNION_DEFINE_RTC_REGS_H__

/* Define the union u_rtc_irq_time_msbs */
typedef union {
    /* Define the struct bits */
    struct {
        osal_u32 rtc_irq_time_msbs : 16; /* [15..0] */
        osal_u32 reserved_0 : 16; /* [31..16] */
    } bits;

    /* Define an unsigned member */
    osal_u32 u32;
} u_rtc_irq_time_msbs;

/* Define the union u_rtc_irq_clr */
typedef union {
    /* Define the struct bits */
    struct {
        osal_u32 rtc_irq_clr : 1; /* [0] */
        osal_u32 reserved_0 : 31; /* [31..1] */
    } bits;

    /* Define an unsigned member */
    osal_u32 u32;
} u_rtc_irq_clr;

/* Define the union u_rtc_irq_mask_out */
typedef union {
    /* Define the struct bits */
    struct {
        osal_u32 rtc_irq_mask_out : 1; /* [0] */
        osal_u32 reserved_0 : 31;      /* [31..1]  */
    } bits;

    /* Define an unsigned member */
    osal_u32 u32;
} u_rtc_irq_mask_out;

/* Define the union u_rtc_irq_int_raw_in */
typedef union {
    /* Define the struct bits */
    struct {
        osal_u32 rtc_irq_int_raw_in : 1; /* [0] */
        osal_u32 reserved_0 : 31;        /* [31..1]  */
    } bits;

    /* Define an unsigned member */
    osal_u32 u32;
} u_rtc_irq_int_raw_in;

/* Define the union u_rtc_irq_int_mask_in */
typedef union {
    /* Define the struct bits */
    struct {
        osal_u32 rtc_irq_int_mask_in : 1; /* [0] */
        osal_u32 reserved_0 : 31;         /* [31..1]  */
    } bits;

    /* Define an unsigned member */
    osal_u32 u32;
} u_rtc_irq_int_mask_in;

/* Define the union u_rtc_time_out_h */
typedef union {
    /* Define the struct bits */
    struct {
        osal_u32 rtc_time_out_h : 16; /* [15..0] */
        osal_u32 reserved_0 : 16;     /* [31..16]  */
    } bits;

    /* Define an unsigned member */
    osal_u32 u32;
} u_rtc_time_out_h;

#endif /* __C_UNION_DEFINE_RTC_REGS_H__ */
